package club.baibin0558.jstudy.web.controller.common;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户控制器
 * @author bai.bin
 */
@RequestMapping("/user")
@RestController
public class UserController {
    @RequestMapping("/info")
    public String info () {
        return "{\"code\":20000,\"data\":{\"roles\":[\"admin\"],\"name\":\"admin\",\"avatar\":\"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif\"}}";
    }
}
